export const tableOption = {
  dialogDrag: false,
  border: true,
  index: true,
  selection: true,
  menuWidth: 200,
  align: 'center',
  menuAlign: 'center',
  searchMenuSpan: 6,
  column: [
    {
      label: '设计稿ID',
      prop: 'designId',
      width: 80,
      search: true,
      searchSpan: 6,
      hide: true,
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '用户ID',
      prop: 'userId',
      search: true,
      searchSpan: 6,
      rules: [
        { required: true, message: '用户ID不能为空', trigger: 'blur' }
      ]
    },
    {
      label: '设计稿名称',
      prop: 'designName',
      search: true,
      searchSpan: 6,
      rules: [
        { required: true, message: '设计稿名称不能为空', trigger: 'blur' }
      ]
    },
    {
      label: '草稿ID',
      prop: 'draftId',
      type: 'number',
      hide: true,
      search: true,
      searchSpan: 6
    },
    {
      label: '基础脸型ID',
      prop: 'faceBaseId',
      type: 'number',
      hide: true,
      search: true,
      searchSpan: 6
    },
    {
      label: '缩略图',
      prop: 'thumbnailUrl',
      type: 'upload',
      listType: 'picture-img',
      imgWidth: 100,
      imgHeight: 100,
      accept: ['jpg', 'jpeg', 'png'],
      action: '',
      propsHttp: {
        url: 'url'
      },
      hide: true,
      span: 24
    },
    {
      label: '设计稿状态',
      prop: 'designStatus',
      type: 'select',
      dicData: [
        { label: '正常', value: 1 },
        { label: '禁用', value: 2 },
        { label: '删除', value: 3 }
      ],
      search: true,
      searchSpan: 6,
      slot: true,
      rules: [
        { required: true, message: '设计稿状态不能为空', trigger: 'blur' }
      ]
    },
    {
      label: '是否公开',
      prop: 'isPublic',
      type: 'radio',
      dicData: [
        { label: '公开', value: 1 },
        { label: '私有', value: 0 }
      ],
      search: true,
      searchSpan: 6,
      slot: true,
      rules: [
        { required: true, message: '是否公开不能为空', trigger: 'blur' }
      ]
    },
    {
      label: '创建时间',
      prop: 'createTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '更新时间',
      prop: 'updateTime',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '基础脸型配置',
      prop: 'faceBaseConfig',
      type: 'textarea',
      span: 24,
      minRows: 3,
      hide: true,
      placeholder: 'JSON格式，如：{"faceBaseId": 1, "scale": 1.0, "offsetX": 0, "offsetY": 0, "rotation": 0}'
    },
    {
      label: '画布配置',
      prop: 'canvasConfig',
      type: 'textarea',
      span: 24,
      minRows: 3,
      hide: true,
      placeholder: 'JSON格式，如：{"width": 800, "height": 600, "backgroundColor": "#FFFFFF"}'
    },
    {
      label: '元数据',
      prop: 'metadata',
      type: 'textarea',
      span: 24,
      minRows: 3,
      hide: true,
      placeholder: 'JSON格式，如：{"version": "1.0", "createdBy": "admin"}'
    }
  ]
}